Conversation
There was a problem hiding this comment.
Code Review
This pull request addresses RHEL-5043 by improving OCSP timeout handling in p11_child. It introduces a default timeout for soft_ocsp requests to prevent indefinite blocking and adjusts the OCSP deadline calculation to use half of the total allocated timeout, providing a buffer for result processing. Additionally, a new suite of system tests has been added to verify smart card authentication behavior under various OCSP responder availability scenarios. I have no feedback to provide.
|
@krishnavema, @spoore1, what branches does this target? |
thalman
left a comment
There was a problem hiding this comment.
The tests and change looks good, but the requirements should not point to private fork
| git+https://github.com/next-actions/pytest-tier | ||
| git+https://github.com/next-actions/pytest-output | ||
| git+https://github.com/SSSD/sssd-test-framework | ||
| #git+https://github.com/SSSD/sssd-test-framework |
There was a problem hiding this comment.
This must be reverted before merging
spoore1
left a comment
There was a problem hiding this comment.
Main thing I think is to move the tests into the existing test_smartcard.py file and use it's helper functions. Besides that, mostly questions for clarification.
| time.sleep(VIRT_CACARD_SETTLE_SECONDS) | ||
|
|
||
|
|
||
| def _assert_smartcard_auth_success(client: Client, username: str) -> None: |
There was a problem hiding this comment.
Didn't you write an authentication util for su for this in another PR? I think that should be used here.
There was a problem hiding this comment.
I guess there is no existing util , do you mean somewhere in specific ?
There was a problem hiding this comment.
I was talking about what you did in this other PR here:
https://github.com/SSSD/sssd-test-framework/pull/239/changes#diff-3399c4ca6a52ee78cd188bf544a4db3318c8e89d60f0476f0566097b58145b08
I think that should be used for this test too if it can be. Maybe we need to review that PR along with this one too?
…mart card authentication (resolves: RHEL-5043)
8845bce to
49f5b90
Compare
|
Testing on Fedora 42 with a downgraded version of sssd does reproduce the issue but, I'm unable to reproduce it anywhere else at this time. When I upgrade to the latest available in Fedora 42, I see it work: Testing with the version built from this PR is not working for me however: FYI, to test with the version built here, I used: Also, I tested with the master branch from sssd-ci-containers to run the Fedora 42 containers. |
Add optional label parameter for pkcs11 support